class StartPop extends egret.gui.SkinnableComponent{
    public constructor(){
        super();
        this.skinName = scene.StartPopSkin;
        this.addEventListener(egret.Event.ADDED_TO_STAGE, this.onAddToStage, this);
    }
    public __startGameBtn:egret.gui.Button;
    private onAddToStage(e:egret.Event):void{
        this.removeEventListener(egret.Event.ADDED_TO_STAGE, this.onAddToStage, this);
        this.__startGameBtn.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClickStageGame,this);
    }
    private onClickStageGame(e:egret.TouchEvent):void{
        this.dispatchEvent(new GuiEvent(GuiEvent.START_GAME));
    }
}
